﻿using FluentValidation;

namespace FluentViewModel.Demo.Configuration
{
    public sealed class DemoViewModelValidator : ConfigureValidator<IDemoViewModel>
    {
        public DemoViewModelValidator()
        {
            RuleFor(x => x.Text)
                .NotNull()
                .NotEmpty();
        }
    }
}